package com.sfpay.merchant.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sfpay.merchant.auth.entity.system.SysDictData;
import com.sfpay.merchant.auth.entity.system.SysDictType;

import java.util.List;

/**
 * <p>
 * 字典类型表 Mapper 接口
 * </p>
 *
 * @author fangchen
 * @since 2022-08-17
 */
public interface SysDictTypeMapper extends BaseMapper<SysDictType> {

    List<SysDictType> selectDictTypeList(SysDictType dictType);

    SysDictType checkDictTypeUnique(String dictType);

    int insertDictType(SysDictType dict);

    SysDictType selectDictTypeById(Long dictId);

    int updateDictDataType(String dictType, String dictType1);

    int updateDictType(SysDictType dict);

    List<SysDictType> selectDictTypeAll();

    SysDictType selectDictTypeByType(String dictType);
}
